﻿
using SanJ.FreeCare.Peis.Configure.Teacher;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace SanJ.FreeCare.Peis
{
    public partial class PeisAppService : FreeCareAppService, IPeisAppService
    {
        public Task<PagedResultDto<TeacherDto>>GetTeacherListAsync(GetTeacherInput input)
        {
            //var totalCount = await _appletManager.GetCountAsync(input.FilterText);
            //var items = await _appletManager.GetPageLisAsync(input.FilterText,input.Sorting,input.SkipCount,input.MaxResultCount);
            //List<TeacherDto> teachers = new List<TeacherDto>();
            //return new PagedResultDto<TeacherDto>
            //{
            //    TotalCount = totalCount,
            //    Items = teachers,
            //};
            throw new NotImplementedException();
        }
        public async Task<TeacherDto>GetTeacherAsync(Guid id)
        {
            //var app = await _appletManager.GetByIdAsync(id);
            //return ToTeacherDto(app);
            throw new NotImplementedException();
        }
        public  Task<TeacherDto> CreateTeacherAsync(TeacherCreateDto input)
        {
            //Applet app = ToAppletAsync(input);
            //var insert = await _appletManager.CreateAsync(app);
            //TeacherDto teacher = new TeacherDto();
            //return teacher;
            TeacherDto teacher = new TeacherDto();
            teacher.Name = "李老师";
            return Task.FromResult(teacher);

        }
        //private TeacherDto ToTeacherDto(Applet app)
        //{
        //    TeacherDto teacher = new TeacherDto();
        //    teacher.TeacherId = app.SNumber;
        //    teacher.Name = app.Name;
        //    return teacher;

        //}
        //private Applet ToAppletAsync(TeacherCreateDto input) 
        //{
        //    Applet app = new Applet();
        //    app.Name = input.Name;
        //    app.SNumber = input.TeacherId;
        //    return app;
        //}
    }
}
